PDF4Java Reference Documentation
com.o2sol.pdf4java.document Package / PDFDocument Class / save Method / save(String,PDFSecurityHandler,boolean) Method
File where the PDF document is saved.
Security handler for encrypting the saved file.
When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5
In This Topic
    save(String,PDFSecurityHandler,boolean) Method
    In This Topic
    Saves the PDF document to a file.
    Syntax
    public void save( 
       java.lang.String fileName,
       PDFSecurityHandler securityHandler,
       boolean enableObjectCompression
    )

    Parameters

    fileName
    File where the PDF document is saved.
    securityHandler
    Security handler for encrypting the saved file.
    enableObjectCompression
    When set to true, the structure of the PDF objects is also compressed. Supported when PDF version >= 1.5
    Exceptions
    ExceptionDescription
    if a java.io.IOException appears during the save operation.
    See Also